package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Permission;
import com.itheima.pojo.Role;

import java.util.List;


public interface PermissionService {
    //查询所有权限信息
    List<Permission> findAll();
    //分页查询
    PageResult findPage(QueryPageBean pageBean);

    //根据角色id查询对应权限
    Permission findById(Integer id);

    //新增权限
    void add(Permission permission);
    //编辑权限
    void edit(Permission permission);
    //根据id删除权限
    void delete(Integer id);


//    public Set<Role> findByUserId(Integer userId);


}
